<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('School_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-school_id" data-rule="required" data-source="school/index" class="form-control selectpage" name="row[school_id]" type="text" value="{$row.school_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Grade_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-grade_id" data-rule="required" data-source="grade/index" class="form-control selectpage" name="row[grade_id]" type="text" value="{$row.grade_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Class_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-class_id" data-rule="required" data-source="gclass/index" class="form-control selectpage" name="row[class_id]" type="text" value="{$row.class_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Stu_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-stu_number" data-rule="required" class="form-control" name="row[stu_number]" type="text" value="{$row.stu_number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Exam_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-exam_number" data-rule="required" class="form-control" name="row[exam_number]" type="text" value="{$row.exam_number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Entry_year')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-entry_year" data-rule="required" class="form-control" name="row[entry_year]" type="text" value="{$row.entry_year|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Grade_data')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="gradeDataList" item="vo"}
            <label for="row[grade_data]-{$key}"><input id="row[grade_data]-{$key}" name="row[grade_data]" type="radio" value="{$key}" {in name="key" value="$row.grade_data"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tag')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-tag" data-rule="required" class="form-control selectpicker" name="row[tag]">
                {foreach name="tagList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.tag"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Subject_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-subject_ids" data-rule="required" data-source="subject/index" data-multiple="true" class="form-control selectpage" name="row[subject_ids]" type="text" value="{$row.subject_ids|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Foreign_subject_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-foreign_subject_ids" data-rule="required" data-source="subject/index" data-multiple="true" class="form-control selectpage" name="row[foreign_subject_ids]" type="text" value="{$row.foreign_subject_ids|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Chinese_class')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-chinese_class" class="form-control" name="row[chinese_class]" type="text" value="{$row.chinese_class|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Maths_class')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-maths_class" class="form-control" name="row[maths_class]" type="text" value="{$row.maths_class|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('English_class')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-english_class" class="form-control" name="row[english_class]" type="text" value="{$row.english_class|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Physics_class')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-physics_class" class="form-control" name="row[physics_class]" type="text" value="{$row.physics_class|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Chemistry_class')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-chemistry_class" class="form-control" name="row[chemistry_class]" type="text" value="{$row.chemistry_class|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Organism_class')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-organism_class" class="form-control" name="row[organism_class]" type="text" value="{$row.organism_class|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Politics_class')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-politics_class" data-rule="required" class="form-control" name="row[politics_class]" type="text" value="{$row.politics_class|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('History_class')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-history_class" class="form-control" name="row[history_class]" type="text" value="{$row.history_class|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Geography_class')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-geography_class" class="form-control" name="row[geography_class]" type="text" value="{$row.geography_class|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Other_class')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-other_class" class="form-control" name="row[other_class]" type="text" value="{$row.other_class|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Parent_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-parent_name" class="form-control" name="row[parent_name]" type="text" value="{$row.parent_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Parent_phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-parent_phone" class="form-control" name="row[parent_phone]" type="text" value="{$row.parent_phone|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
